Skip to main content

to

Type

keyword

Summary

Used with several commands, usually to designate a destination point.

Syntax

to

Description

Use the to keyword to complete a command that requires it.

The to keyword is used with the add, convert, copy, create alias, drag, exit to top, export, go, move, open socket, post, print card, rename, seek, send, send to program, write to file, write to process, write to socket, and write to driver commands.

It is also used to designate the final color in visual effects, and with the set command to designate the new property setting.

Examples

drag button 5 from tFirstPoint to tSecondPoint with shiftKey
copy tMyButton to this card
seek to 102 in file "/usr/bin/supfiles/man"
set the cIsRaining of me to true

glossary: command, keyword, property

keyword: from

command: send to program, convert, write to file, move, send, seek, copy, write to driver, create alias, drag, write to process, open socket, export, go, post, rename, add, write to socket

control structure: exit to top

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?